package com.sdkx.app.model;

import org.litepal.LitePal;
import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;
import java.util.Date;
import java.util.List;

/**
 * 航迹线类
 */
public class TrackLine extends ViewObject{
    private int id;
    private long  createTime;//创建时间
    private long  endtime;  // 结束时间
    private List<TrackPoint> trackPointList;//此航迹包含的航迹点

    public TrackLine(){
        createTime = System.currentTimeMillis();
    }
    public int getId() {
        return id;
    }

    public void setEndtime(long endtime) {
        this.endtime = endtime;
    }

    public long getEndtime() {
        return endtime;
    }

    public long getCreateTime() {
        return createTime;
    }

    public List<TrackPoint> getTrackPointList() {
        return LitePal.where("trackline_id = ?",String.valueOf(getId())).find(TrackPoint.class);
    }

}
